class UserService {

  refresh = () => {
    return new Promise(function (resolve, reject) {
      setTimeout(() => {
        reject('错误');
      }, 3000);
    });
  }

  login = (name, pass) => {
    return new Promise(function (resolve, reject) {
      setTimeout(() => {
        resolve('token');
      }, 3000);
    });
  }
}

export default new UserService();